//
//  CCCollectionViewCell.m
//  BuDeJie
//
//  Created by demoncraz on 2017/2/12.
//  Copyright © 2017年 demoncraz. All rights reserved.
//

#import "CCCollectionViewCell.h"
#import <UIImageView+WebCache.h>

@interface CCCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *textLabel;

@end

@implementation CCCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setItem:(CCSquareItem *)item {
    _item = item;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    self.textLabel.text = item.name;
}

@end
